function selectedTab(m,n)
{
	var tlis = document.getElementById("tab_bar").getElementsByTagName("li");
	var tdivs = document.getElementById("tab_bar_container").getElementsByTagName("div");
	
	for(var i = 0; i < tlis.length; i++)
	{
		if(i == n)
		{
			tlis[i].className = "selected_tab";
		}
		else
		{
			tlis[i].className = "";
		}
	}
	
	for(var i = 0; i < tdivs.length; i++)
	{
		if(i == n)
		{
			tdivs[i].id = "selected_tab_bar_content";
		}
		else
		{
			tdivs[i].id = "";
		}
	}
}
